<template>
  <transition>
  <tab-bar style=" position: fixed; width: 100%;">
    <tab-bar-item path="/home">
      <template v-slot:item-icon><img class="logo-image" src="@a/logo.png" alt=""></template>
      <template v-slot:item-icon-active><img class="logo-image" src="@a/logo.png" alt=""></template>
    </tab-bar-item>
    <tab-bar-item path="/home" activeColor="mediumturquoise">
      <template v-slot:item-text>
        <div class="title-style">技术平台</div>
      </template>
      <template v-slot:item-icon><img src="" alt=""></template>
      <template v-slot:item-icon-active style="text-align: center">
        <div class="hengxian"></div>
      </template>
    </tab-bar-item>
    <tab-bar-item path="/shop" activeColor="mediumturquoise">
      <template v-slot:item-text>
        <div class="title-style">解决方案</div>
      </template>
      <template v-slot:item-icon><img src="" alt=""></template>
      <template v-slot:item-icon-active style="text-align: center">
        <div class="hengxian"></div>
      </template>
    </tab-bar-item>
    <tab-bar-item path="/community" activeColor="mediumturquoise">
      <template v-slot:item-text>
        <div class="title-style">此悟文化</div>
      </template>
      <template v-slot:item-icon><img src="" alt=""></template>
      <template v-slot:item-icon-active style="text-align: center">
        <div class="hengxian"></div>
      </template>
    </tab-bar-item>
    <tab-bar-item path="/store" activeColor="mediumturquoise">
      <template v-slot:item-text>
        <div class="title-style">童年造物</div>
      </template>
      <template v-slot:item-icon><img src="" alt=""></template>
      <template v-slot:item-icon-active style="text-align: center">
        <div class="hengxian"></div>
      </template>
    </tab-bar-item>
    <tab-bar-item path="/about" activeColor="mediumturquoise">
      <template v-slot:item-text>
        <div class="title-style">关于我们</div>
      </template>
      <template v-slot:item-icon><img src="" alt=""></template>
      <template v-slot:item-icon-active style="text-align: center">
        <div class="hengxian"></div>
      </template>
    </tab-bar-item>
    <tab-bar-item path="/create" activeColor="mediumturquoise">
      <template v-slot:item-text>
<!--        <i class="el-icon-user"></i>-->
        <div class="title-style">
          <i class="el-icon-shopping-cart-2" style="margin: 0 5px 0 0"></i>商城</div>
      </template>
      <template v-slot:item-icon><img src="" alt=""></template>
      <template v-slot:item-icon-active style="text-align: center">
        <div class="hengxian"></div>
      </template>
    </tab-bar-item>
  </tab-bar>
  </transition>
</template>

<script>
import TabBar from "./TabBar";
import TabBarItem from "./TabBarItem";

export default {
  name: "MainTabBar",
  components: {
    TabBar,
    TabBarItem
  }
}
</script>
<style>
#tab-bar{
  position: fixed;
  width: 100%;
}
</style>
<style scoped>
.title-style {
  font-weight: bold;
  position: relative;
  top: 20px;
  cursor: pointer;
  color: #fff;

}

.title-style:hover {
  color: #e8634a;
}

.logo-image {
  width: 100px;
  position: relative;
  top: 20px;
}

.hengxian {
  background: #e8634a;
  position: relative;
  text-align: center;
  top: 23px;
  width: 50px;
  margin: 0 auto;
  height: 4px;
}
</style>